<form action="{{ path('task_new') }}" method="post" {{ form_enctype(form) }}>
  {{ form_errors(form) }}
  
  {{ form_row(form.task) }}
  {{ form_row(form.dueDate) }}
  
  <div>
    {{ form_label(form.task, 'Task Description') }}
    {{ form_errors(form.task) }}
    {{ form_widget(form.task, { 'attr' : { 'class': 'task_field' } }) }}
  </div>
  
  <div>
    {{ form_label(form.dueDate) }}
    {{ form_errors(form.dueDate) }}
    {{ form_widget(form.dueDate) }}
  </div>
  
  <div class="category">
    {{ form_row(form.category.name) }}    
  </div>
  
  {{ form_rest(form) }}  
  {{ form_widget(form) }}
  <input type="submit"/>
</form>
